package com.pss.order.exception;

import com.pss.common.exception.BaseException;
import com.pss.common.exception.ExpHandler;
import feign.Response;
import feign.codec.ErrorDecoder;
import org.springframework.context.annotation.Configuration;

@Configuration
public class FeignErrorDecoder implements ErrorDecoder {
    @Override
    public Exception decode(String s, Response response) {
        System.out.println("s");
        return new BaseException("商品服务无法访问");
    }
}
